package com.hanamaki.operator;

/**
 * 关系运算符
 * 关系运算符的结果为   1.true   2.false   布尔类型的结果
 * <   <=   >  >=  !=  ==    instanceof
 */
public class Demo04 {
    public static void main(String[] args) {

        int a = 10;
        int b = 20;

        // 取余  模运算
        System.out.println(a % b);

        boolean result = a > b;
        System.out.println(result);
        System.out.println(a >= b);
        System.out.println(a < b);
        System.out.println(a <= b);
        System.out.println(a==b);
        System.out.println(a != b);


    }
}
